<template>
    <div>
            <div class="recommend-content">
  
            <ul class="comic-list">
                <li v-for="item in likelist" :key="item.comic_id"  @click="Jump_pre(item.comic_id,item.comic_name)">
                    <img :src="item.cover_img" alt="">
                    <span>{{item.comic_name}}</span>
                </li>
            </ul>
        </div>
    </div>
</template>
<script>
export default {
    props:['likelist'],
    methods: {
        Jump_pre(id,name){
            console.log(id,name);
            this.$emit('getlikename',name)
            this.$emit('getlikelistid',id)
          
        },
    },
}
</script>
<style scoped>
.recommend-content{
    width: 100%;
    border-bottom: 18.8px solid #f2f2f2;
    background-color: #fff;
}
.recommend-title{
    border-top-left-radius: 12px;
border-top-right-radius: 12px;
    width: 100%;
    background-color: rgb(73, 221, 161);
}
.recommend-title>img{
    position: relative;
    width: 125px;
    height: 25px;
    left: 50%;
    transform: translate(-50%,0);
    margin-top: 11.5px;
}
.comic-list{
    padding: 0 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 13px;
}
.comic-list li{
    width: 108px;
    height: 165px;
    margin-bottom: 14px;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, .1) ;
    border-radius: 6px;
    overflow: hidden;
    
}
.comic-list li img{
    display: block;
    width: 100%;
    height: 137px;
}
.comic-list li span{
    display: block;
    width: 100%;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 14px;
}
</style>